#include "StdAfx.h"
#include "MTVector.h"

using namespace matsu;

#if _IPHONE_
#pragma mark vector2
#endif
TEST(Vector2, GetSet)
{
	ivec2 v1(1, 2);
	EXPECT_EQ(1, v1.x);
	EXPECT_EQ(2, v1.y);
}

TEST(Vector2, pointer)
{
	ivec2 v1(1, 2);
	const int *ptr = v1.pointer();
	EXPECT_EQ(1, ptr[0]);
	EXPECT_EQ(2, ptr[1]);
}

TEST(Vector2, equal)
{
	ivec2 v1(1, 2);
	ivec2 v2(1, 2);
	ivec2 v3(2, 3);

	//EXPECT_EQ(v1, v2);
	EXPECT_TRUE(v1 !=v3);
}

TEST(Vector4, GetSet)
{
	ivec4 v(1, 2, 3, 4);
	EXPECT_EQ(1, v.x);
	EXPECT_EQ(2, v.y);
	EXPECT_EQ(3, v.z);
	EXPECT_EQ(4, v.w);
}
